.SUFFIXES : .x .o .c .s

ROOT = /usr/local/arm_tools
LIB = $(ROOT)/lib/gcc-lib/arm-elf/3.0
LIB1 =$(ROOT)/arm-elf/lib
INC :=$(ROOT)/arm-elf/inc

CC=arm-elf-gcc -I$(INC) -Wl,-elf2flt

WEC_LDFLAGS=-L./lib -L$(LIB) -L$(LIB1)

SRCS := rtc_lib.c

LIBS= -lc -lgcc -lc

all:    rtc_lib.o
	ar rv librtc.a rtc_lib.o 
	mv librtc.a ../lib

clean:
	rm -f *.o 
	rm -f *.x 
	rm -f *.map
	rm -f temp
	rm -f *.a
	rm -f *.gdb

